Some thought pages are created from the base template, with the addition of some metadata tags in the file head. Other tought pages are created directly from jupyter notebooks, such as this one. This notebook was used to test the thought page and the ability to generate html pages from these jupyter notebooks.
After any notebook is completed, a script is run that converts the notebook to html, adds various style elements, inserts various file metadata into the head of the document, and finally puts the converted html into a template created for the thoughts page.
Code is corretly styled/formatted as can be seen below:
import numpy as np
np.zeros(10)
array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])
The script can be found here
The script is run from the command line using "python convert_nb_to_html.py {file name}" from the folder in which the notebook exists